//
//  DBService.h
//  TShield
//
//  Created by Razeen on 11/25/15.
//  Copyright © 2015 lollipop. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FMDB.h"
#import "UserModel.h"

@interface DBService : NSObject{
    
    FMDatabase *_dataBase;
    UserModel  *_userModel;
}

+ (id)shareDB;
//- (id)init;
- (BOOL)addAccountWithModel:(UserModel *)userInfo;
- (BOOL)removeAccountWithID:(int)accountID;
- (BOOL)isAccountEmpty;
- (BOOL)isExistThisKeyInSqlite:(NSString *)key;
- (BOOL)isExistThisIDInSqlite:(int)ID;
- (void)writeToFile:(NSURL *)path;
- (NSArray *)queryAccount;
- (void)deleteAllFile;
- (BOOL)saveNotModelArrayintoDB:(NSArray *)array;
@end
